package com.hx.decorator.battercate;

/**
 * @author Huathy
 * @date 2021-09-05 15:40
 * @description 包装类，还是要继承抽象类
 */
public abstract class BattercakeDecorator extends Battercake {
    //静态代理
    private Battercake battercake;

    public BattercakeDecorator(Battercake battercake) {
        this.battercake = battercake;
    }

    @Override
    protected String getMsg() {
        return battercake.getMsg();
    }

    @Override
    protected int getPrice() {
        return battercake.getPrice();
    }


}
